package com.youan.pangu.security.brower.validatecode;

/**
 * 验证码类型
 */
public enum ValidateCodeType {
    SMS{
        @Override
        public String getParamNameOnValidate() {
            return ValidateConstants.DEFAULT_PARAMETER_NAME_CODE_SMS;
        }
    },
    IMAGE {
        @Override
        public String getParamNameOnValidate() {
            return ValidateConstants.DEFAULT_PARAMETER_NAME_CODE_IMAGE;
        }
    }
    ;

    /**
     * 校验时从请求中获取的参数名字
     * @return
     */
    public abstract String getParamNameOnValidate();
}
